package cn.fintecher.pangolin.entity.mysql;

import cn.fintecher.pangolin.common.enums.BaseSelect;
import cn.fintecher.pangolin.common.enums.StatusType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * @Auther: xiaqun
 * @Description: 案件状态设置实体
 * @Date: 9:28 2019/9/7
 */

@Data
@Entity
@Table(name = "status_config")
@ApiModel(value = "案件状态设置实体", description = "案件状态设置实体")
public class StatusConfig extends BaseEntity {
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "类型")
    @Enumerated(EnumType.STRING)
    private StatusType type;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否重点")
    @Enumerated(EnumType.STRING)
    private BaseSelect isImportant;

    @ApiModelProperty(value = "委托方ID")
    private String principalId;

    @ApiModelProperty(value = "委托方名称")
    private String principalName;
}
